﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace IDAL {
    public interface IContact {
        /// <summary>
        /// I：根据分组编号，获取联系人数量
        /// </summary>
        /// <param name="groupId"></param>
        /// <returns></returns>
        int GetContactCountByGroupId(int groupId);
        /// <summary>
        /// I：根据查询条件，获取联系人列表
        /// </summary>
        /// <param name="strwhere"></param>
        /// <returns></returns>
        DataTable GetList(string strwhere);
        /// <summary>
        /// I：添加联系人
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Add(Model.Contact model);
        /// <summary>
        /// I：删除指定联系人
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        bool Delete(int Id);
        /// <summary>
        /// I：更新联系人信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Update(Model.Contact model);
        /// <summary>
        /// I：指定ID，获取联系人信息
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Model.Contact GetModel(int Id);
    }
}
